/*******************************************************************
 *
 * Copyright (C), 2021-2022, LS, All rights reserved.
 *
 * Author      :
 * Create Time : 2020-12-17
 * Version     : v0.1
 * Description : hal_bat_table header file
 *******************************************************************/
#ifndef __APP_BATT_TABLE_H__
#define __APP_BATT_TABLE_H__

/*----------------------------Head file----------------------------*/
#include "stdint.h"
#include "user_config.h"

/*----------------------------macro file---------------------------*/
#define BAT_PERCENT_TABLE_NUM       100

/*----------------------------type define--------------------------*/

/*--------------------------var declarative------------------------*/

#if (BATT_TYPE == LI_BATT)

const uint16_t ChargeBatLevelTable[BAT_PERCENT_TABLE_NUM] = {
    3500, 3556, 3662, 3672, 3683, 3694, 3704, 3715, 3725, 3736,
    3747, 3758, 3769, 3779, 3790, 3800, 3810, 3821, 3831, 3841,
    3852, 3862, 3872, 3883, 3893, 3904, 3914, 3925, 3936, 3947,
    3952, 3954, 3956, 3958, 3960, 3962, 3964, 3966, 3968, 3970,
    3972, 3974, 3976, 3978, 3980, 3982, 3984, 3986, 3988, 3990,
    4002, 4004, 4006, 4008, 4010, 4012, 4014, 4016, 4018, 4020,
    4022, 4024, 4026, 4028, 4030, 4032, 4034, 4036, 4038, 4040,
    4042, 4044, 4046, 4048, 4050, 4052, 4054, 4056, 4058, 4060,
    4062, 4064, 4066, 4068, 4070, 4072, 4074, 4076, 4078, 4080,
    4082, 4084, 4086, 4088, 4090, 4092, 4094, 4096, 4098, 4150,
};

// 放电状态电压等级查找表
const uint16_t DisChargeBatLevelTable[BAT_PERCENT_TABLE_NUM] = {
    3600, 3614, 3624, 3631, 3639, 3647, 3665, 3672, 3676, 3678,
    3680, 3682, 3686, 3693, 3699, 3705, 3711, 3716, 3721, 3726,
    3730, 3733, 3737, 3740, 3743, 3747, 3750, 3753, 3756, 3758,
    3761, 3764, 3766, 3769, 3771, 3774, 3777, 3779, 3782, 3785,
    3788, 3790, 3794, 3797, 3800, 3803, 3807, 3811, 3814, 3818,
    3823, 3827, 3831, 3836, 3842, 3847, 3853, 3860, 3866, 3874,
    3881, 3888, 3895, 3902, 3909, 3916, 3923, 3930, 3937, 3944,
    3951, 3958, 3965, 3972, 3979, 3986, 3993, 4000, 4007, 4014,
    4021, 4026, 4031, 4036, 4041, 4046, 4051, 4056, 4061, 4066,
    4071, 4074, 4076, 4078, 4080, 4082, 4084, 4086, 4088, 4090
};

#elif (BATT_TYPE == ANEROID_BATT)

// 放电状态电压等级查找表
const uint16_t DisChargeBatLevelTable[BAT_PERCENT_TABLE_NUM] = {
    2400, 2406, 2412, 2418, 2424, 2430, 2436, 2442, 2448, 2454,
    2460, 2466, 2472, 2478, 2484, 2490, 2496, 2502, 2508, 2514,
    2520, 2526, 2532, 2538, 2544, 2550, 2556, 2562, 2568, 2574,
    2580, 2586, 2592, 2598, 2604, 2610, 2616, 2622, 2628, 2634,
    2640, 2646, 2652, 2658, 2664, 2670, 2676, 2682, 2688, 2694,
    2700, 2706, 2712, 2718, 2724, 2730, 2736, 2742, 2748, 2754,
    2760, 2766, 2772, 2778, 2784, 2790, 2796, 2802, 2808, 2814,
    2820, 2826, 2832, 2838, 2844, 2850, 2856, 2862, 2868, 2874,
    2880, 2886, 2892, 2898, 2904, 2910, 2916, 2922, 2928, 2934,
    2940, 2946, 2952, 2958, 2964, 2970, 2976, 2982, 2988, 2994,
};

#endif

/*-----------------------------------------------------------------*/

#endif // __APP_BATT_TABLE_H__

